import moment from 'moment';

const DateUtil = {
  format(date, format = 'YYYY-MM-DD HH:mm:ss'){
    const s = moment(date).format(format);
    return s;
  }
};

export default DateUtil;
